package com.chaodev.base.dto;

import com.chaodev.base.model.Depart;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("部门拓展对象")
public class DepartDTO extends Depart {

    @ApiModelProperty("父级部门名称")
    private String parentDepartName;
    @ApiModelProperty("部门简称")
    private String simpleName;
    private String icon;
    private String url;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getParentDepartName() {
        return parentDepartName;
    }

    public void setParentDepartName(String parentDepartName) {
        if (parentDepartName.equals("") || parentDepartName == null) {
            this.parentDepartName = "";
        } else {
            this.parentDepartName = parentDepartName;
        }
    }

    public String getSimpleName() {
        return simpleName;
    }

    public void setSimpleName(String simpleName) {
        if (simpleName.equals("") || simpleName == null) {
            this.simpleName = "";
        } else {
            this.simpleName = simpleName;
        }
    }

}
